package com.example.sfm.pojo.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Schema(description = "教师导入模板")
@AllArgsConstructor
@NoArgsConstructor
public class TeachersImportDto {
    @ExcelProperty("用户ID")
    @NotNull
    @Schema(description = "用户ID")
    private Integer userId;

    @ExcelProperty("教师姓名")
    @NotBlank
    @Schema(description = "教师姓名")
    private String teacherName;

    @ExcelProperty("教师编号")
    @NotBlank
    @Size(min = 6, max = 20)
    @Schema(description = "教师编号")
    private String teacherNumber;

    @ExcelProperty("学院")
    @NotBlank @Size(max = 100)
    @Schema(description = "学院")
    private String department;

    @ExcelProperty("职称")
    @NotBlank
    @Pattern(regexp = "讲师|副教授|教授")
    @Schema(description = "职称")
    private String title;

    @ExcelProperty("研究方向")
    @Size(max = 200)
    @Schema(description = "研究方向")
    private String researchArea;

    @ExcelProperty("办公电话")
    @Pattern(regexp = "^0\\d{2,3}-\\d{7,8}$")
    @Schema(description = "办公电话")
    private String officePhone;

    @ExcelProperty("办公室地址")
    @Size(max = 200)
    @Schema(description = "办公室地址")
    private String officeLocation;


}
